package com.iciot.dao;

import com.iciot.domain.User;

import java.sql.SQLException;
import java.util.ArrayList;

public interface UserDao {
    void insert(User user) throws Exception;
    void delete(int id) throws Exception;
    void update(User user) throws Exception;
    User findById(int id) throws Exception;
    User findByName(String name) throws Exception;
    ArrayList<User> findAll() throws Exception;
}
